﻿// =================================================================== 
// 项目说明,功能实体类,用CodeSmith自动生成。
// =================================================================== 
// 文件名: CommonInfoEntity.cs
// 修改时间：2020-9-8 10:39:59
// 修改人: lixiong
// =================================================================== 
using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using JX.Infrastructure.Attribute;
using JX.Infrastructure.Common;

namespace JX.Core.Entity
{
	/// <summary>
	/// 数据库表：CommonInfo 的实体类.
	/// </summary>
	[Table("CommonInfo")]
	public partial class CommonInfoEntity
	{
		#region Properties
		private int? _generalID = 0;
		/// <summary>
		/// 内容全局ID(主键)
		/// </summary>
		[Column("GeneralID",TypeName="int")]
		[Key]
		public int? GeneralID
		{
			get {return _generalID;}
			set {_generalID = value;}
		}
		
		private int? _nodeID = 0;
		/// <summary>
		/// 节点ID
		/// </summary>
		[Column("NodeID",TypeName="int")]
		public int? NodeID
		{
			get {return _nodeID;}
			set {_nodeID = value;}
		}
		
		private int? _modelID = 0;
		/// <summary>
		/// 模型ID
		/// </summary>
		[Column("ModelID",TypeName="int")]
		public int? ModelID
		{
			get {return _modelID;}
			set {_modelID = value;}
		}
		
		private int? _itemID = 0;
		/// <summary>
		/// 与相应模型表中的ID相对应的记录ID
		/// </summary>
		[Column("ItemID",TypeName="int")]
		public int? ItemID
		{
			get {return _itemID;}
			set {_itemID = value;}
		}
		
		private System.String _tableName = string.Empty;
		/// <summary>
		/// 模型表名
		/// </summary>
		[Column("TableName",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TableName
		{
			get {return _tableName;}
			set {_tableName = value;}
		}
		
		private System.String _title = string.Empty;
		/// <summary>
		/// 标题
		/// </summary>
		[Column("Title",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Title
		{
			get {return _title;}
			set {_title = value;}
		}
		
		private System.String _inputer = string.Empty;
		/// <summary>
		/// 录入者
		/// </summary>
		[Column("Inputer",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Inputer
		{
			get {return _inputer;}
			set {_inputer = value;}
		}
		
		private int? _hits = 0;
		/// <summary>
		/// 点击数
		/// </summary>
		[Column("Hits",TypeName="int")]
		public int? Hits
		{
			get {return _hits;}
			set {_hits = value;}
		}
		
		private int? _dayHits = 0;
		/// <summary>
		/// 日点击数
		/// </summary>
		[Column("DayHits",TypeName="int")]
		public int? DayHits
		{
			get {return _dayHits;}
			set {_dayHits = value;}
		}
		
		private int? _weekHits = 0;
		/// <summary>
		/// 周点击数
		/// </summary>
		[Column("WeekHits",TypeName="int")]
		public int? WeekHits
		{
			get {return _weekHits;}
			set {_weekHits = value;}
		}
		
		private int? _monthHits = 0;
		/// <summary>
		/// 月点击数
		/// </summary>
		[Column("MonthHits",TypeName="int")]
		public int? MonthHits
		{
			get {return _monthHits;}
			set {_monthHits = value;}
		}
		
		private int? _linkType = 0;
		/// <summary>
		/// 链接类型（0：实链接，1：虚链接）
		/// </summary>
		[Column("LinkType",TypeName="int")]
		public int? LinkType
		{
			get {return _linkType;}
			set {_linkType = value;}
		}
		
		private DateTime? _updateTime = null;
		/// <summary>
		/// 更新时间
		/// </summary>
		[Column("UpdateTime",TypeName="datetime")]
		public DateTime? UpdateTime
		{
			get {return _updateTime;}
			set {_updateTime = value;}
		}
		
		private DateTime? _createTime = null;
		/// <summary>
		/// 生成HTML页面时间
		/// </summary>
		[Column("CreateTime",TypeName="datetime")]
		public DateTime? CreateTime
		{
			get {return _createTime;}
			set {_createTime = value;}
		}
		
		private System.String _templateFile = string.Empty;
		/// <summary>
		/// 该文章所使用的模板路径
		/// </summary>
		[Column("TemplateFile",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TemplateFile
		{
			get {return _templateFile;}
			set {_templateFile = value;}
		}
		
		private int? _infoStatus = 0;
		/// <summary>
		/// 信息状态（-3：删除，-2：退稿，-1：草稿，0：待审核，99：终审通过，其它为自定义）
		/// </summary>
		[Column("InfoStatus",TypeName="int")]
		public int? InfoStatus
		{
			get {return _infoStatus;}
			set {_infoStatus = value;}
		}
		
		private int? _elite = 0;
		/// <summary>
		/// 推荐级别
		/// </summary>
		[Column("Elite",TypeName="int")]
		public int? Elite
		{
			get {return _elite;}
			set {_elite = value;}
		}
		
		private int? _priority = 0;
		/// <summary>
		/// 优先级别
		/// </summary>
		[Column("Priority",TypeName="int")]
		public int? Priority
		{
			get {return _priority;}
			set {_priority = value;}
		}
		
		private int? _commentAudited = 0;
		/// <summary>
		/// 通过审核的评论总数
		/// </summary>
		[Column("CommentAudited",TypeName="int")]
		public int? CommentAudited
		{
			get {return _commentAudited;}
			set {_commentAudited = value;}
		}
		
		private int? _commentUnAudited = 0;
		/// <summary>
		/// 未通过审核的评论总数
		/// </summary>
		[Column("CommentUnAudited",TypeName="int")]
		public int? CommentUnAudited
		{
			get {return _commentUnAudited;}
			set {_commentUnAudited = value;}
		}
		
		private int? _signinType = 0;
		/// <summary>
		/// 签收类型
		/// </summary>
		[Column("SigninType",TypeName="int")]
		public int? SigninType
		{
			get {return _signinType;}
			set {_signinType = value;}
		}
		
		private DateTime? _inputTime = null;
		/// <summary>
		/// 文章录入时间
		/// </summary>
		[Column("InputTime",TypeName="datetime")]
		public DateTime? InputTime
		{
			get {return _inputTime;}
			set {_inputTime = value;}
		}
		
		private DateTime? _passedTime = null;
		/// <summary>
		/// 审核通过时间
		/// </summary>
		[Column("PassedTime",TypeName="datetime")]
		public DateTime? PassedTime
		{
			get {return _passedTime;}
			set {_passedTime = value;}
		}
		
		private System.String _editor = string.Empty;
		/// <summary>
		/// 编辑
		/// </summary>
		[Column("Editor",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String Editor
		{
			get {return _editor;}
			set {_editor = value;}
		}
		
		private DateTime? _lastHitTime = null;
		/// <summary>
		/// 上次点击时间
		/// </summary>
		[Column("LastHitTime",TypeName="datetime")]
		public DateTime? LastHitTime
		{
			get {return _lastHitTime;}
			set {_lastHitTime = value;}
		}
		
		private System.String _defaultPicUrl = string.Empty;
		/// <summary>
		/// 默认首页图片
		/// </summary>
		[Column("DefaultPicUrl",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String DefaultPicUrl
		{
			get {return _defaultPicUrl;}
			set {_defaultPicUrl = value;}
		}
		
		private System.String _pinyinTitle = string.Empty;
		/// <summary>
		/// 拼音标题
		/// </summary>
		[Column("PinyinTitle",TypeName="nvarchar(1000)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String PinyinTitle
		{
			get {return _pinyinTitle;}
			set {_pinyinTitle = value;}
		}
		
		private System.String _titleFontColor = string.Empty;
		/// <summary>
		/// 标题字体颜色
		/// </summary>
		[Column("TitleFontColor",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TitleFontColor
		{
			get {return _titleFontColor;}
			set {_titleFontColor = value;}
		}
		
		private System.String _titleFontType = string.Empty;
		/// <summary>
		/// 标题字型
		/// </summary>
		[Column("TitleFontType",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String TitleFontType
		{
			get {return _titleFontType;}
			set {_titleFontType = value;}
		}
		
		private System.String _includePic = string.Empty;
		/// <summary>
		/// 标题前缀（1：[图文]，2：[组图]，3：[推荐]，4：[注意]）
		/// </summary>
		[Column("IncludePic",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String IncludePic
		{
			get {return _includePic;}
			set {_includePic = value;}
		}
		
		private System.Boolean _isShowCommentLink = false;
		/// <summary>
		/// 列表显示时是否在标题旁显示“评论”链接
		/// </summary>
		[Column("IsShowCommentLink",TypeName="bit")]
		public System.Boolean IsShowCommentLink
		{
			get {return _isShowCommentLink;}
			set {_isShowCommentLink = value;}
		}
		
		private decimal? _titleHashKey = 0.0m;
		/// <summary>
		/// 标题的HASH值
		/// </summary>
		[Column("TitleHashKey",TypeName="decimal")]
		public decimal? TitleHashKey
		{
			get {return _titleHashKey;}
			set {_titleHashKey = value;}
		}
		
		private System.String _seoTitle = string.Empty;
		/// <summary>
		/// 
		/// </summary>
		[Column("SeoTitle",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SeoTitle
		{
			get {return _seoTitle;}
			set {_seoTitle = value;}
		}
		
		private System.String _seoKeyword = string.Empty;
		/// <summary>
		/// 
		/// </summary>
		[Column("SeoKeyword",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SeoKeyword
		{
			get {return _seoKeyword;}
			set {_seoKeyword = value;}
		}
		
		private System.String _seoDesc = string.Empty;
		/// <summary>
		/// 
		/// </summary>
		[Column("SeoDesc",TypeName="nvarchar(255)")]
		[DisplayFormat(ConvertEmptyStringToNull = false)]
		public System.String SeoDesc
		{
			get {return _seoDesc;}
			set {_seoDesc = value;}
		}
		
		#endregion
	}
}
